import Layout from '@/layout'

const authRouter = {
  path: '/auth',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Auth',
  meta: {
    title: 'auth',
    icon: 'chart'
  },
  children: [
    {
      path: 'dept',
      component: () => import('@/views/auth/authoritymanagement/dept/AuthDept'),
      name: 'AuthDept',
      meta: { title: 'authDept', noCache: true, roles: ['MMP'] }
    },
    {
      path: 'role',
      component: () => import('@/views/auth/authoritymanagement/role/AuthRole'),
      name: 'AuthRole',
      meta: { title: 'authRole', noCache: true, roles: ['MMP'] }
    },
    {
      path: 'menu',
      component: () => import('@/views/auth/authoritymanagement/menu/AuthMenu'),
      name: 'AuthMenu',
      meta: { title: 'authMenu', noCache: true, roles: ['MMP'] }
    },
    {
      path: 'vip',
      component: () => import('@/views/auth/authoritymanagement/vip/AuthVip'),
      name: 'AuthVip',
      meta: { title: 'authVip', noCache: true, roles: ['MMP'] }
    },
    {
      path: 'user',
      component: () => import('@/views/auth/authoritymanagement/user/AuthUser'),
      name: 'AuthUser',
      meta: { title: 'authUser', noCache: true, roles: ['MMP'] }
    }
  ]
}

export default authRouter
